package com.itheima.youdianda.common;

import org.springframework.cache.interceptor.KeyGenerator;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;

/**
 * @author 袁鹏
 * @date 2022-09-08-10:28
 */

@Component("commonKeyGenerator")
public class CommonKeyGenerator implements KeyGenerator {
    @Override
    public Object generate(Object target, Method method, Object... params) {
        return "commonKey";
    }
}
